package com.itheima.day06.ZuoYe.ZuoYe1;

public class Goods {
    private String name; // 名称
    private double price;   // 价格
    private int saleNum; // 销量

    @Override
    public String toString() {
        return "Goods{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", saleNum=" + saleNum +
                '}';
    }

    public Goods() {
    }

    public Goods(String name, double price, int saleNum) {
        this.name = name;
        this.price = price;
        this.saleNum = saleNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }
}
